﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Top.Business.OAuth
{
    public class OAuthLoginModel
    {
        public string Code { get; set; }

        public string Message { get; set; }

        public OAuthLoginData Data { get; set; }

        public string ServerTime { get; set; }
    }

    public class OAuthLoginData
    {
        public string AccessToken { get; set; }

        public DateTime ExpirationTime { get; set; }

        public string UserToken { get; set; }

        public DateTime UserLastUpdated { get; set; }

        public string LoginToken { get; set; }

        public int CrmUserID { get; set; }

        public int BrokerID { get; set; }

        /*
         * Password : 1, //帐号密码
         * LoginToken : 2, //登录令牌登陆
         * Select : 3, //直接选择已登录的帐号
         * ThirdParty : 4, //第三方帐号
         * TempPassword : 5 //使用临时密码登录
         */
        public int LoginType { get; set; }

    }
}
